package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName(value = "t_race_log", autoResultMap = true)
public class RaceLog implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long raceId;

    // 价格
    private int price;

    // 持仓
    private int stock;

    // 账户余额 盈利
    private int balance;

    // 交易量
    private int volume;

    private String description;

    private LocalDateTime createdAt;
}
